import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        liveNum: 0, //直播人数
        isShowComment: true,
        liveIntro: '', //直播详情
        countNum:0,
        jobNum:0,
    },
    mutations: {
        updateLiveNum(state, liveNum) {
            state.liveNum = liveNum
        },
        updateisShowComment(state, isShowComment) {
            state.isShowComment = isShowComment
        },
        updateLiveIntro(state, liveIntro) {
            state.liveIntro = liveIntro
        },
        addCountNum(state){
            state.countNum++
        },
        updateJobNum(state,playload){
            state.jobNum=playload
        }
    }
})